import request from '@/utils/request'

const reviewApi = {
  menu_finds: '/frontend/ProjectType/menu_finds',
  ask_table: 'frontend/review_management/list', // 申报台账页table获取
  get_detail: 'frontend/review_management/detail',
  operate_table: 'frontend/review_management/operation'
}
// 获取树状菜单
export function menuFinds (parameter) {
  return request({
    url: reviewApi.menu_finds,
    method: 'get',
    params: parameter
  })
}
export function askTable (parameter) {
  return request({
    url: reviewApi.ask_table,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getDetail (parameter) {
  return request({
    url: reviewApi.get_detail,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function operateTable (parameter) {
  return request({
    url: reviewApi.operate_table,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
